import request from '@/utils/request'

// 查询违规记录管理列表
export function listViolation(query) {
  return request({
    url: '/Tour/violation/list',
    method: 'get',
    params: query
  })
}

// 查询违规记录管理详细
export function getViolation(violationId) {
  return request({
    url: '/Tour/violation/' + violationId,
    method: 'get'
  })
}

// 新增违规记录管理
export function addViolation(data) {
  return request({
    url: '/Tour/violation',
    method: 'post',
    data: data
  })
}

// 修改违规记录管理
export function updateViolation(data) {
  return request({
    url: '/Tour/violation',
    method: 'put',
    data: data
  })
}

// 删除违规记录管理
export function delViolation(violationId) {
  return request({
    url: '/Tour/violation/' + violationId,
    method: 'delete'
  })
}

// 导出违规记录管理
export function exportViolation(query) {
  return request({
    url: '/Tour/violation/export',
    method: 'get',
    params: query
  })
}